package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface UserMapper {
    User getByOpenId(@Param("openId")String openId);

    Long insert(User user);

    User getbyId(Long currentId);

    Integer countByMap(@Param("map") Map map);
}
